package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.List;

@Data
@Table(name = "cn_omc_bill_meal")
public class OmcBillMeal extends BaseEntity {

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 账单id
     */
    @Column(name = "bill_id")
    private Long billId;

    /*
    * 套餐id
    * */
    @Column(name = "set_meal_id")
    private Long setMealId;

    /**
     * 套餐名称
     */
    @Column(name = "meal_name")
    private String mealName;

    /**
     * 套餐原价
     */
    @Column(name = "origin_fee")
    private BigDecimal originFee;

    /**
     * 减免费用
     */
    @Column(name = "rate_refief")
    private BigDecimal rateRefief;

    /**
     * 优惠价格
     */
    @Column(name = "reduced_price")
    private BigDecimal reducedPrice;

    /**
     * 实际费用
     */
    @Column(name = "actual_fee")
    private BigDecimal actualFee;


    /**
     * 备注
     */
    private String remark;


    /*
    *  套餐项目
    * */
    @Transient
    private List<OmcBillSetMealItem> billSetMealItemList;

}